package com.qf.controller;

import com.qf.pojo.User;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user")
@Tag(name = "用户信息管理")
public class HelloController {


    @Operation(summary = "根据id获取用户信息")
    @PostMapping("getById")
    public User reginst(@Parameter(name = "user",description = "用户请求体") @RequestBody User user) {
        System.out.println("正在注册");
        return user;
    }
}